<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fns" uri="/WEB-INF/tlds/fns.tld"%>
<!DOCTYPE html>
<html>
	<head>
		<title>人员管理</title>
		<!-- 引入公用Js与Css -->
		<%@include file="/view/common/resource.jsp" %>
		<script src="<%=basePath%>/js/extends/message/business.message.js" type="text/javascript"></script>
	</head>
	<body>
		<div id="wrap">
			<div class=" radius3 borderD pb15">
				<div class="clearfix mt15 mr10 ml10">
					<fns:hasPermission value="authority.message.handle">
						<input type="hidden" id="authority_message_handle" value="1">
					</fns:hasPermission>
					<dl class="mt15 clearfix font12">
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">标题:</span>
					            <input type="text" class="form-control" id="title" name="title">
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">消息类型:</span>
					            <select id="messageType" name="messageType" class="form-control">
									<option value="">请选择</option>
									<option value="1">收信</option>
									<option value="2">发信</option>
								</select>
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">消息状态:</span>
					            <select id="status" name="status" class="form-control">
									<option value="">请选择</option>
									<option value="0">待发送</option>
									<option value="3">已发送</option>
									<option value="1">未读</option>
									<option value="2">已读</option>
									<option value="4">回复未读</option>
								</select>
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">开始时间:</span>
					            <input type="text" class="form-control" id="startTime" readonly onclick="laydate()" name="startTime"/>
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">结束时间:</span>
					            <input type="text" class="form-control" id="endTime" readonly onclick="laydate()" name="endTime"/>
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">接收人:</span>
					            <input type="text" class="form-control" id="receiveName" name="receiveName">
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl10">
							<div class="input-group input-group-sm w200">
					            <span class="input-group-addon">发送人:</span>
					            <input type="text" class="form-control" id="sendName" name="sendName">
					        </div>
						</dd>
						<dd class="clearfix pt10 pull-left pl15">
							<button type="button" id="searchData" class="btn btn-default">查询</button>
						</dd>
					</dl>
					<div id="toolbar">
						<fns:hasPermission value="sys.member.handle">
							<button type="button" class="btn btn-default" onclick="add();">新增</button>
						</fns:hasPermission>
					</div>
					<table id="message_table"></table>
				</div>
			</div>
		</div>
		<script type="text/javascript">
		$(function(){
			if('${messageBase.status}'!=''){
				$("#status").val('${messageBase.status}');
			}
			if('${messageBase.messageType}'!=''){
				$("#messageType").val('${messageBase.messageType}');
			}
			searchData();
		})
		
		</script>
	</body>
</html>
